'''
Created on May 15, 2012

@author: Vu Dao
'''

# property of "Title" text box
def xpathTitleTxt():
    return "//input[@name='jform[title]']"

# property of "Alias" text box
def xpathAliasTxt():
    return "//input[@name='jform[alias]']"

# property of "Category" combobox
def xpathCategoryCombo():
    return "//select[@name='jform[catid]']"

# property of "Status" combobox
def xpathStatusCombo():
    return "//select[@name='jform[state]']"

# property of "Access" conbobox
def xpathAccessCombo():
    return "//select[@name='jform[access]']"

# property of "Featured" combobox
def xpathFeatureCombo():
    return "//select[@name='jform[featured]']"

# property of "Language" combobox
def xpathLanguageCombo():
    return "//select[@name='jform[language]']"

# property of "Article Text" text
def xpathArticleText():
    return "//p"
#    return "//html/body[@id='tinymce']/p/br/.."

# property of "Save" button
def xpathSaveButton():
    return ".//*[@id='toolbar-apply']/a/text()[2]"

# property of "Save & Close" button
def xpathSaveAndCloseButton():
    return ".//*[@id='toolbar-save']/a/text()[2]"

# property of "Save & New" button
def xpathSaveAndNewButton():
    return ".//*[@id='toolbar-save-new']/a/text()[2]"

# property of "Cancel" button
def xpathCancelButton():
    return ".//*[@id='toolbar-cancel']/a/text()[2]"